// 用户相关接口
// import { get } from "../utils/request1"
import { get, post, del, put } from "../utils/request1"

//不同请求的封装方法
// export const login = (data) => get('/api/login', data)
// export const getUserInfo = (data) => post('/api/getuser', data)
// export const delUser = (data) => del('/api/delUser', data)
// export const upUser = (data) => put('/api/upuser', data)

// export const loginAPI = ({ username, password }) => {
//   return request({
//     url: '/api/login',
//     method: 'post',
//     data: {
//       username,
//       password
//     }
//   })

const apis = {
  loginAPI: (data) => post('/api/login', data),
  // warningUserList: (data) => get('api/warningUser/list', data)
}
export default apis